function isEmptyObject(obj) { for(var name in obj) { if(obj.hasOwnProperty(name)) { return false; } } return true; };