:exists? :k doesn't make sense, remove it.
Normalize candidate order for better readability