entity_has_no_pgs
if (!isservice && entity_has_no_pgs(entity, isservice)) {
entity_has_no_pgs((void *)svc, 1)) {