Why find_first_index/find_last_index functions return array?

In reply to prashantg:

All of the find methods return an array because the source array could be empty. Returning -1 is not an option because that is a potential valid index.