isTrueFalse function

Logical assertions