Abfrage via If-Statement in tpl