Use indexOf instead of _.find