{% set key = item.type ~ ':' ~ item.slug %} {% set raw = content_map.get(key) or {} %} {% set total_videos = raw.get('total_videos') or 0 %} {% set featured_urls = raw.get('featured_urls') or [] %} {% set additional_urls = raw.get('additional_urls') or [] %} {% set has_content = total_videos > 0 or featured_urls|length > 0 or additional_urls|length > 0 %}