結果 : check if object is empty or undefined javascript