I suggest you merge the two `for` loop into one and code will be something like this:
```
var getCandAt = this._pendingSymbols ? this.emEngine.getCandidate : this.emEngine.getPredictAt;
for (...) {
  var cand = getCandAt(id);
  ...
}
```