is there a function that I can use inside smarty template if any value is assigned to a template variable? something like:

{if $variable === null }

{/if}