We can save the Array allocation here and do something like _this_ below:

```javascript
this.previousCommandOffset = previousCommands ? previousCommands.length : 0;
```