function isEmptyObject(obj) { return !Object.keys(obj).length; }
Object.entries(objectToCheck).length === 0