Fix validation when it can return nil instead of true or false
Merge pull request #24 from artemshitov/nil-validation

Fix validation when it can return nil instead of true or false

Fixes #22