At this point (else) the user is definitely nil, so you don't need t condition the line with 'unless user'