changes to checking Bools
Merge pull request #3 from tcfraser/syntax-fix

changes to checking Bools