Check IndexError for invalid index in Vector.get