結果 : check for null and undefined javascript