Returne false if null.
Merge pull request #20 from shannonkao/master

Fix issue #8