Add a more robust !if test.