How can I check if an entire team has died?

How can I check if an entire team has died? - Set of gratitude message for doctors with stethoscope and hearts

I'm making a Minecraft minigame map using commandblocks (no code or mods). One of the game end conditions is that a team is eliminated.

How to I reliably check that a team has no members left alive on it?

I am using 1.8, and this will (obviously) be multiplayer






Pictures about "How can I check if an entire team has died?"

How can I check if an entire team has died? - From above arrangement of yellow stethoscope with red heart shape placed on blue background with THANK YOU DOCTORS inscription
How can I check if an entire team has died? - Multiracial men in activewear with backpacks resting on stone and checking ticks while having break during trekking
How can I check if an entire team has died? - Top view of retro light box with THANK YOU DOCTORS inscription placed on green surface








Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Karolina Grabowska, Karolina Grabowska, Kamaji Ogino, Karolina Grabowska