When testing in Unity, Play Mode will cause any instance of IsPlayerInVR to crash out.
This should ideally return false by default so it can be used for testing purposes.