Is there a reason you have to manually check for Android/iOS/FxOS here? Can you use getPlatform(), isFirefox(), and isFirefoxUpToDate() instead?