Fix buggy handing of boolean values in affirmative/negative checks