validation for boolean functions