You can reformat this to reduce nesting via an early return

```js
if (errors) {
  return errors;
}

//.. your logic
```