Renamed getIndexOf to getFirstIndexOf to properly reflect what it does