Updated check for iOS