Updadted PDO Drivers check to return boolean

Fixes the issue highlighted by static analysis tools such as Scrutinizer CI: return of count($drivers) is and integer rather than a boolean