public function tableExists($table) { $tables = $this->getTables(); return in_array($table, $tables); }