DEV: Don't use `$.isEmptyObject()` (PR #14953)

GitHub