Null check was checking the wrong variable
Merge pull request #2 from justingish/patch-1

Null check was checking the wrong variable