Fix for null issue

This just checks that the match is true
Merge pull request #2 from justinrolston/master

Fix for null issue