I'll suggest changing this line to
```js
return network.security || [];
```
Because there is an assumption in previous version of `getSecurity()` that it would not return `undefined` or `null`.
Otherwise, you'll need to fix the test cases in wifi_helper_test.js to make Travis green.