[ticket/11768] Replaced template predicates with conditionals

PHPBB3-11768