private function getConfig(Connection $conn, $key, $default = null) { return $conn->hasConfig($key) ? $conn->getConfig($key) : $default; }