Let's cache this outside where you defined `isIOS` directly, no point in checking for whether it's `undefined`.