It looks like `nonDefaultValues` is an array, so this way of checking emptiness is a bit strange. If it's an array, we can just check its length. If it's an object, we should update the JSDocs and use `_.isEmpty`