If `options.params` is an array, the `if` can be replaced by:

```js
options.method.apply(null, options.params || []);
```

(null can be whatever context is appropriate)