Moving List.exists to List.map.