what about a more concise approach

```js
var responseProperty = options.responseType === 'xml' ? 'responseXML' : 'response';
```