結果 : check if object is undefined or null javascript