im not so sure about empty part.
and also, it should be integer1 = 1, then 0 at end.
since if it keeps increasing by 1, it doesnt matter.
it just re-checks when he dies =]
edit: gah.. why 0.3 seconds?
just do a check if a unit dies, remove him from the group..
if a unit dies, also make the ankh item check. if its true, dont remove him, if its false, remove him..
then after that, do the check:
unit group X is empty equals to true,
if it returns true, do your actions.