結果 : check if property is undefined javascript