結果 : check if variable is not undefined javascript