/** * Checks if table exists in the database * @return boolean */ public function exists() { return !($this->db->get_var("SHOW TABLES LIKE '" . $this->getTableName() . "'") != $this->getTableName()); }