this should be sufficient:

```js
product[COMPAT_REASONS] = reasons.length ? reasons: undefined;
return product[COMPAT_REASONS];
```