Display Shopify Block if block have content
Table of contents
No headings in the article.
Blocks are modules of content that can be added, removed, and reordered within a section. If Blocks have no content then it is unnecessary to show these blocks.
If there is no content in a blocks. We can hide blocks automatically using Liquid.
This code will make sure that for loop will not execute it section have no block content.