tnl: add check for conditional rendering