There is no need to panic if input index is out of bounds because we have a function to check the validity of the `input_index` argument and use it in other places already.