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