Fixes NotEmpty in case of object, or array.