I looked into it and JS `&&` has higher operator precedence than `||`, so I think this might better be written as:

```js
if ((this.args.fullReset || this.args.fastReset) && typeof this.device.resetAndStartApp === "function") {
```