isObjectEmpty
function isObjectEmpty(property)
{
if (!property) {
return true;
}
var i;
var isEmpty = true;
for (i in property) {
if (Object.prototype.hasOwnProperty.call(property, i)) {
isEmpty = false;
}
}
return isEmpty;
}