For ECMAScript5 (not supported in all browsers yet though), you can use:
Object.keys(obj).length === 0
1.4m articles
1.4m replys
5 comments
57.0k users