Is this a bad practice?

@benorenstein thanks I need to have authenticate return user or nil for my user method, this is what it currently looks like.