結果 : check condition for empty object javascript