User Object.keys().length instead of $.isEmptyObject()