結果 : check object is defined javascript