Function toNonEmptyPlainObject

Returns x if x is a plain object and has at least one key.