Add undefined handling

Had to add require('should') to use static method :(

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>
Merge pull request #4 from globesherpa/undefined-fix

Add undefined handling