Make sure user is not nil when doing foo on it.