Conditional check for empty taxonomies