docs: def _name_exists(self, name):
          """
          Checks if we already have an opened tab with the same name.
          """
          for i in range(self.count()):
              if self.tabText(i) == name:
                  return True
          return False