linting fix: Restructure bad empty if statement

The intent wasn't super clear here, what the author meant was that only run this code if `authValues` is defined. 

This will also allow us to enforce no empty code blocks