use is_team_active() instead of raw team.is_connected