$settingValue) { if (preg_match('/base_url\[(.*)\]/', $settingName, $matches)) { $workingContextPath = $matches[1]; $contextBaseUrls[$workingContextPath] = $settingValue; } } } return $contextBaseUrls; } /** * Retrieve whether the specified configuration variable is defined, even if it's null. * * @return bool */ public static function hasVar(string $section, string $key): bool { return array_key_exists($key, Config::getData()[$section] ?? []); } }