Simplified function to return bool.
Merge pull request #1 from murrekatt/master

Simplified function to return bool.