Any reason this test is not merged into the if block at line 188?