Updated PDO Drivers check to return boolean

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