fetchOne($query, [$key]); } /** * Returns whether a column with the given name exists on the given table. */ protected function columnExists(string $table, string $column): bool { $query = "SHOW COLUMNS FROM `{$table}` LIKE ?"; return (bool) DBManager::get()->fetchOne($query, [$column]); } }