I am using Windows Identity foundation. In one of the sites protected by W.I.F, there is a user registration view, which anonymous users can browse to. At this point, i would like to see in my registration controller if a W.I.F token currently exists:

I was going to do it like this:

```
public bool HasWifToken(HttpContextBase httpContextBase)
        {
            var claimsIdentity = httpContextBase.User.Identity as IClaimsIdentity;
            if (claimsIdentity == null)
            {
                return false;
            }

            return claimsIdentity.Claims.Count > 0;
        }

```

But is there a better way to see if you have a live token? Thanks very much.