Trivia plugin

Would declaring ``userid`` and ``username`` before the if/else statement fix the issues with scope?