Another alternative would be:
```js
if (args[0] in (opts.config || {})) {
```
Not sure which you'd prefer