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