Is there any particular reason you did this instead of:

```js
frames.push(frame);
return;
```