docs: @Pure
  	public boolean hasBusHaltOnSegment(RoadSegment segment) {
  		if (this.roadSegments.isEmpty() || this.validHalts.isEmpty()) {
  			return false;
  		}
  
  		int cIdxSegment;
  		int lIdxSegment = -1;
  		RoadSegment cSegment;
  
  		for (final BusItineraryHalt bushalt : this.validHalts) {
  			cIdxSegment = bushalt.getRoadSegmentIndex();
  			if (cIdxSegment >= 0 && cIdxSegment < this.roadSegments.getRoadSegmentCount()
  					&& cIdxSegment != lIdxSegment) {
  				cSegment = this.roadSegments.getRoadSegmentAt(cIdxSegment);
  				lIdxSegment = cIdxSegment;
  				if (segment == cSegment) {
  					return true;
  				}
  			}
  		}
  
  		return false;
  	}