Check for nil when showing categories