You don't need to conditionally declare the whole params object. Declare the params as it was previously, then  after, if there is an error:

```js
// Splice in after [0]forward, [1]view-message-report
params.items.splice(2, 0, { resend item });
```