Changed from forEach to indexOf