```javascript
return im.config.sectors.indexOf(sector.toLowerCase()) != -1;
```
would be simpler