How to Check for an Empty Object in JavaScript | CodeTrail