I think it is an inverted if clause, and as far as I know it is a true usage. A=B but i dont understand why to use "in" at A. I think all three are grammatically true BUT a better usage can be by throwing away the second whether in the subordinate clause
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.