Put some (...) around your test expression here to make it more readable:

```var cues = (data && ("cues" in data)) ? data.cues : this.cues,```

Same in the next line with regions.