I'm going to guess that this is because an explicit boolean value is being tested for rather than a truthy or falsey value. I wonder if those could be weeded out and replaced with truthy comparisons.