結果 : check if something is not undefined javascript