docs: def has(self, querypart_name, value=None):
          """
          Returns ``True`` if ``querypart_name`` with ``value`` is set. For example
          you can check if you already used condition by ``sql.has('where')``.
  
          If you want to check for more information, for example if that condition
          also contain ID, you can do this by ``sql.has('where', 'id')``.
          """
          if super().has(querypart_name, value):
              return True
          if not value:
              return super().has('select_options', querypart_name)
          return False