deleted is_transaction var to use PDO::inTransaction method instead