check for TMmemberof when counting if type has members