{foreach from=$charm->getPrereqs() item=prereq name=prereq}{if count($prereq) == 1}{if $charmsByURI[$prereq[0]] instanceof ExcellencySet}{else}{if $charmsByURI[$prereq[0]] instanceof ExcellencySetPair}{else}{/if}{/if}{if $charmsByURI[$prereq[0]] instanceof ExcellencySet}{else}{if $charmsByURI[$prereq[0]] instanceof ExcellencySetPair}{/if}{/if}{/if}{/foreach}{foreach from=$charm->getIncompats() item=incompat name=incompat}{if count($incompat) == 1}{if $charmsByURI[$incompat[0]] instanceof ExcellencySet}{else}{if $charmsByURI[$incompat[0]] instanceof ExcellencySetPair}{else}{/if}{/if}{if $charmsByURI[$incompat[0]] instanceof ExcellencySet}{else}{if $charmsByURI[$incompat[0]] instanceof ExcellencySetPair}{/if}{/if}{/if}{/foreach}