Can someone help me with this… I'm not sure if i'm doing it the right way but I want to know if the gallery is empty can you hide the outer ul? or is there an alternative to what i'm doing?

Thanks in advance!

<ul class="gallery">
    {{ gallery }}
        <li>
            <img src="{{ img }}">
            <div>{{ title }}</div>
        </li>
    {{ /gallery }}
    </ul>
Answered by Shane! Go to answer.