def validate_team(all_boards, calender, team, glob=False):
    """
    Helper function to validate if a team should be synced or not.

    :param Dict all_boards: All boards
    :param Dict calender: Calender created for the team
    :param String team: Team name
    :param Bool glob: Are we checking for the global board
    :return: True/False if the team should be synced
    :rtype: Bool
    """
    # Gather all quarters
    quarters = []
    for quarter, value in calender.items():
        if value:
            if value[0]['quarter_string'] not in quarters:
                quarters.append(value[0]['quarter_string'])

    if not glob:
        # Check if the boards are in JIRA already
        for quarter in quarters:
            if f'{quarter} - {team} Board' in all_boards.keys():
                return False
        return True
    else:
        # Check if the boards are in JIRA already
        for quarter in quarters:
            if f'{team} - {quarter} Board' in all_boards.keys():
                return False
        return True