Exact for this reason the "IF" blocks have been created. Somewhere in php code you create the variable aData[sMenuIcon] Somewhere in the neighbourhood you should find: $oTpl->setIf('MENUICON'); Ask before that for content in aData[sMenuIcon] and if not empty set this "setIf" on that.