How about

```js
return userAgent.toLowerCase().contains("firefox");
```