Add undefined handling

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

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>