This check doesn't work: both Arrays and Strings have a `length` property, of course (as well as many other properties and methods: `slice`, `indexOf`, `lastIndexOf`, etc.).

We'll need a different Array-check.  Here's something off the top of my head, not sure what the best practice is:
```js
if (options.trustedDomains instanceof [].constructor) {
```