title: Google oauth gives 500 Internal Server Error if entered wrong token
body: <p>Here is my code</p>
  
  <pre><code>$client = new Google_Client();
  $client-&gt;setApplicationName("name");
  $client-&gt;setClientId('id');
  $client-&gt;setClientSecret('secret');
  $client-&gt;addScope("https://www.googleapis.com/auth/userinfo.email");
  $token_data = $client-&gt;verifyIdToken($token);
  </code></pre>
  
  <p>verifyIdToken is triggering 500 Internal Server Error if token is invalid. Can you help me to figure out how to get rid of that? And how can i verify the token is valid or not?</p>