added a check for cadidates with no options left.