{assign var=hide value=true} {foreach $tags as $tag} {if $tag['tag']|in_array:$selectedTags} {assign var=hide value=false} {break} {/if} {/foreach}