style: eliminate equality tests with true and false