code: def HasTable(self, table_name):
      
      if not self._connection:
        raise RuntimeError(
            'Cannot determine if table exists database not opened.')
  
      sql_query = self._HAS_TABLE_QUERY.format(table_name)
  
      self._cursor.execute(sql_query)
      if self._cursor.fetchone():
        return True
  
      return False
docs: Determines if a specific table exists.
  
      Args:
        table_name (str): table name.
  
      Returns:
        bool: True if the table exists.
  
      Raises:
        RuntimeError: if the database is not opened.