while (bikeToTransitOpts.size() > 0 && count < max - 1) {
    opts.push(bikeToTransitOpts.deq())
    count++
  }