nit:
```javascript
if (...) {
  return;
}
```