Original Code from https://github.com/GaretJax/phpbrowscap