const a = undefined; const b = {};
if(a > 0){ return true; } else{ return false; }
if(b.a > 0) { return true; } else{ return false; }