we try to avoid nested ternery statements like this, you can rewrite this as 

```js
if (!('new_edits' in opts)) {
    if ('new_edits' in req) {
        opts.new_edits = req.new_edits;
    } else {
        opts.new_edits = true;
    }
}
``