diff --git a/src/main/resources/templates/templates/templateFunctions.ftl b/src/main/resources/templates/templates/templateFunctions.ftl
index ed2d0e839e992d8e88913d12d70471c236e38056..1bea158764588079690891d3bcfa15fd70940728 100644
--- a/src/main/resources/templates/templates/templateFunctions.ftl
+++ b/src/main/resources/templates/templates/templateFunctions.ftl
@@ -63,7 +63,7 @@
 </#macro>
 
 <#macro templateName template>
-    <#if template.getName()??>
+    <#if template.getName()?has_content>
         <tr>
             <td class="template-content-label">${locale.getString("transaction.new.label.name")}</td>
             <td>${template.getName()}</td>
@@ -90,7 +90,7 @@
 </#macro>
 
 <#macro templateDescription template>
-    <#if template.getDescription()??>
+    <#if template.getDescription()?has_content>
         <tr>
             <td class="template-content-label">${locale.getString("transaction.new.label.description")}</td>
             <td>${template.getDescription()}</td>