def has_section(self, section) -> bool:
        """Test if file has section.

        Parameters
        ----------
        section : string
            Section.

        Returns
        -------
        boolean
        """
        self.config.read(self.filepath)
        return self.config.has_section(section)