結果 : check for undefined and null in javascript