there is a more structured and terse way of doing this

```js
var req = settings && settings.createLock().get('ftu.sim.mandatory') || {}
```