original_string: protected function hasTablesOrViews()
      {
          $tables = $this->db->query('SHOW TABLES', DbAdapter::QUERY_MODE_EXECUTE);
  
          return (bool) count($tables);
      }
code: protected function hasTablesOrViews()
      {
          $tables = $this->db->query('SHOW TABLES', DbAdapter::QUERY_MODE_EXECUTE);
  
          return (bool) count($tables);
      }
code_tokens: protected function hasTablesOrViews ( ) { $ tables = $ this -> db -> query ( 'SHOW TABLES' , DbAdapter :: QUERY_MODE_EXECUTE ) ; return ( bool ) count ( $ tables ) ; }
docstring: Checks for existing tables in the database
  
  @return boolean Whether or not there are existing tables
docstring_tokens: Checks for existing tables in the database