def isJudge(contest_data, user):
    """ Helper method for checking if a user is judge of the contest
    :param contest_data:a Contest object
    :param user: a User object
    :return: boolean type. True if the user is a judge of the contest, or False if not.
    """
    contest_judges = contest_data.contest_admins.all()
    for judge in contest_judges:
        if user == judge:
            return True
    return False