35 minutes ago, pswork said:{if isset($sections) && $sections} {foreach from=$sections key=keySection item='section'} {if isset($section.hook) && $section.hook === $hook} {/if} {/foreach} {/if}
do i need to check every time isset($section.hook) if it is a child already checked isset($sections)?
The best practice is to do this. Unless your 100% sure that if $sections is set de sub variables are always filled.
If a variable is called which is not set a error will be displayed.