```javascript
var isLD = _.contains(this.config.availableLDQualities, value),
    qualityList = isLD ? 'availableHDQualities': 'availableLDQualities',
    newQuality = _.first(this.config[qualityList]);
```