It is better to rename to `getIndexOfItem`. May be `getIndex` is enough.