fix authchoice.js

What is this check for?