結果 : check for not undefined javascript