The best I can come up with is to get the community_id and then check if it is false. Seem clunky.
set community_id [dotlrn_community::get_community_id]
<if @community_id@ false>
This is a User.
</if>
<else>
This is a community (class/club/subcomm).
</else>
Anything better ...?
Thanks.