Refactored SqlitePDO::isAvailable

to prevent errors when PDO constants aren’t available.
Merge pull request #187 from tedious/pdo_error

Refactored SqlitePDO::isAvailable