added types for adverts
don't render categories if empty