public static function isWindows() { if (is_null(self::$_isWindows)) { self::$_isWindows = array_key_exists('WINDIR', $_SERVER) || array_key_exists('windir', $_SERVER); } return self::$_isWindows; }