Won't it be better to use `isPlatformIOS` method here?