Undefined handling
Added not check and a proper test
0.0.7