Fix a typo and use a better way to check Boolean
Merge pull request #21 from orzFly/patch-2

Fix a typo and use a better way to check Boolean