What property to check if user is anonymous

I have anonymous logins enabled. This means the user 'is authenticated' when it's not really (but yes, there's a user reference available). I would like to check whether this user is anonymous or not?

6 replies