結果 : check if not undefined javascript