catch undef
Merge pull request #11 from andrewjpage/master

catch undef