The benefit of this is a clearer error message and putting all the functionality in one place. Further, the indices check can be ignored in this case (i.e. move it into the `else` case).