diff --git a/templates/mod/debug/apc.html b/templates/mod/debug/apc.html
index f3c0bde7..fde0979b 100644
--- a/templates/mod/debug/apc.html
+++ b/templates/mod/debug/apc.html
@@ -8,10 +8,10 @@
{% for var in cached_vars %}
- {{ var.key ? var.key : var.info }} |
- {{ var.nhits ? var.nhits : var.num_hits }} |
- {{ (var.ctime ? var.ctime : var.creation_time)|ago }} ago |
- {{ ((var.ctime ? var.ctime : var.creation_time) + var.ttl)|until }} (ttl: {{ (time() + var.ttl)|until }}) |
+ {{ var.key is defined ? var.key : var.info }} |
+ {{ var.nhits is defined ? var.nhits : var.num_hits }} |
+ {{ (var.ctime is defined ? var.ctime : var.creation_time)|ago }} ago |
+ {{ ((var.ctime is defined ? var.ctime : var.creation_time) + var.ttl)|until }} (ttl: {{ (time() + var.ttl)|until }}) |
{{ var.mem_size }} bytes |
{% endfor %}