protected function checkCandidateCountValidity(array $ranking): bool
    {
        if (count($ranking) > $this->election->getCandidateCount()) {
            $this->logger->debug('Invalid ballot - number of candidates');

            return false;
        }

        return true;
    }