Hiding Collapsable Row with blank metafield on product page

Hello,

I have tried multiple variations from if’s, unless, and else trying to hide a collapsable row on. the Dawn Shopify 2.0 theme. Some of my products have content for the metafields and some do not. I am looking for a away to hide the collapsable row based on a metal field is blank or not. I have tried other posts similar but have not found anything specific to metafields. Below are screenshots and a sample of my code. this is the original code. Any help would be greatly appreciated.


  

    

      

        

          {%- if section.settings.caption != blank -%}
            

 {{ section.settings.caption | escape }}

          {% endif %}
          {%- if section.settings.heading != blank -%}
            ## {{ section.settings.heading | escape }}
          {%- else -%}
            ## {{ 'accessibility.collapsible_content_title' | t }}
          {% endif %}
        

        
          {%- if section.settings.image != blank -%}
            

              

                
              

            

          {% endif %}
          
            {%- for block in section.blocks -%}
              

                
              

            {%- endfor -%}
          

        

      

    

  

I got two questions,

  1. how are you displaying your metafield content

  2. How are the collapsibles being added?