結果 : check if value is defined javascript