check for presence of template variable before using it