af.desktopBrowsers: DRY refactoring

Getting started with [jscpd](https://github.com/kucherenko/jscpd/) if found this little code redundancy.

Refactored it into a documented function that also exits earlier.