Tests if index is within the bounds of this vector.
index
@nonVirtual bool isWithinBounds(int index) => 0 <= index && index < count;