remove redundant if statement, helper returns null if user not logged in