fix for boolean checks.

1 may be true, but so is 2 and 3 and 4.