Forgot the boolean test
Merge pull request #254 from andylyall/develop

Forgot the boolean test