Use a require here and again print the index and the allowed bounds