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