take over changes from PR 67 from garetjax/phpbrowscap

see https://github.com/GaretJax/phpbrowscap/pull/67 for more details

This should be mwerged into master