use typeof to check for boolean
Merge pull request #5 from garthenweb/fix-is-boolean

use typeof to check for boolean in _isBoolean() function