Should this be

    if not is_ballot_valid(submission):

?