$client->api('authorizations')->all() from isGithubCredentialValid() returned an empty array and I got in a loop asking me to authenticate again and again while my credentials was good (otherwhise, $client->api('authorizations')->all() returns a false).
So, that's why I added this triple === to ask PHP to check value AND type