Indeed, check that the index is in bounds