結果 : check if item is undefined javascript