Refactored and changed asUndefined behaviour to use new field
Refactored and changed asUndefined behaviour to use new field

Big-Shark/mockery,TiagoMaiaL/mockery,florianeckerstorfer/mockery,yeka/mockery,TiagoMaiaL/mockery,fhinkel/mockery,tfrommen/mockery,yeka/mockery,fhinkel/mockery,5outh/mockery,tfrommen/mockery,padraic/mockery,florianeckerstorfer/mockery,jenswiese/mockery,jenswiese/mockery,kminh/mockery,5outh/mockery,Big-Shark/mockery,kminh/mockery