Very confusing 'if' block.