XF 1.5 Calling a custom user field in an addon template

I have a problem:

<xen:if is="{$visitor.customFields.LegacyRep.no}">
visitor array returns "no" </br>
<xen:else />
visitor array returns "yes" </br>
<xen:if is="{$user.customFields.LegacyRep.no}">
user array returns "no" </br>
<xen:else />
user array returns "yes" </br>
I'm trying to make use of the $visitor array in an addon template, but it doesn't work. It's fine anywhere else, but not in that particular template.

How would I go about making $visitor usable within a given template? Thanks in advance.