結果 : check object is undefined javascript