This is wrong check, what you need to do is to make sure the unit itself exists not the entity class exist. Looks at `AttackGroundAction` to see how this check is done
```
return g_Assist.DoesEntityObjectExist(_attackerId);
```