This can be done very easy and without scripting or triggers.
First, name the playable unit, i.e. "MyLeader".
Then in the AI which are grouped with this unit, in the line "Condition of presence" (near bottom of dialog) just write:
(alive MyLeader)
This way, the AI will only be present if Teamleader is. I don't know if or how this works @ JIP