<cif> / <celse>
The template system provides a declarative if syntax:
<cif condition="data->is_admin">
...
<celse>
...
</cif>
The condition is extracted from the condition="..." attribute and translated directly into a normal if (...).