public static function getEnvironmentVariable($name, $default = null, bool $ignoreCase = false)
    {
        if (empty($name) || !is_string($name)) {
            return null;
        }
        
        if (($value = getenv($name))) {
            return $value;
        }
        
        return ArrayUtils::getArrayValueForKeyOrDefault($_ENV, $name, $default, $ignoreCase);
    }