Does this need to handle `IndexError` exceptions?