Assuming I declare
var ad = {};
How can I check whether this object will contain any user-defined properties?
If you are willing to use lodash, you can use the some method.
some
_.some(obj) // returns true or false
See this small jsbin example