If you're not storing this boolean for anything, why not just put the authenticate bit right into this if statement?