public static function isWindows(Request $request) {

        if (false === $request->headers->has("user-agent")) {
            return false;
        }

        $dd = new DeviceDetector($request->headers->get("user-agent"));
        $dd->parse();

        $os = $dd->getOs("name");

        return 1 === preg_match("/Windows/", $os);
    }