Adds isGroup: helper for determining if an element represents a group