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