It looks like this is just taking the logical OR of the schedulables' checkSpeculatableTasks(), so I think this can be written as a one-liner:

```scala
schedulableQueue.exists(_.checkSpeculatableTasks())
```

This has the added benefit of short-circuiting once we find a Schedulable with speculatable tasks.