code: def has_section(self, section) -> bool:
          
          self.config.read(self.filepath)
          return self.config.has_section(section)
docs: Test if file has section.
  
          Parameters
          ----------
          section : string
              Section.
  
          Returns
          -------
          boolean