結果 : how to check condition for empty object in javascript