You want to either use "Integer comparison" and "Count units in unit group" or the boolean comparison "Unit group is empty"
For example:
Code:
((Units owned by Player 1 (Red) matching (((Matching unit) is A Hero) Equal to True)) is empty) Equal to True