Check for category name before outputting it