PDO inTransaction bug

Prevent PHP/PDO bug where inTransaction returns 1/0 instead of true/false.