Update Oauth.php

Fixed missing comma and semi-colon. Removed the IF statement that checked an undeclared variable, instead used count() to calculate the last item in the $output array which contains the bearer_token jSON string.