code: function isObjEmpty(obj) {
    for(var prop in obj) {
      if(obj.hasOwnProperty(prop))
        return false;
    }
    return JSON.stringify(obj) === JSON.stringify({});
  }
docs: /* Object Manipulation http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object