Used for those cases we need to know whether an object is empty or not
Object.prototype.isEmpty = () => { if (Object.keys(this).length === 0 && this.constructor === Object) { return true; } else { return false; } }