```
return (!_.isUndefined(val)) ? determineMatch(val, $scope.model[idx]) : $scope.model[idx];
```
(shrug)