/** * Checks if a given table exists in the database * * @param string $tableName Name of table * @return boolean */ protected function checkTableExists($tableName) { $allTables = $this->_db->getTableList(); return in_array($tableName, $allTables); }