same as above. 

Ideally I guess it should be written:

```js
displayViewDef.then(i < viewPath.length ? function() { ... } : function() {});
```