Fix for boolean example validation.

Only fail when boolean example isn't true or false - previous version always failed (example can't be both true and false at the same time).