Please use `std::min (timeIndex_, delayArray_.size ())` for reliability.