{if count($existingAccounts) > 0}
{foreach $existingAccounts as $bankAccount} {assign "payMethod" $bankAccount.payMethod nocache} {/foreach}
{/if}