diff --git a/includes/database/database.inc b/includes/database/database.inc
index 4cc1a33..9a01623 100644
--- a/includes/database/database.inc
+++ b/includes/database/database.inc
@@ -1004,7 +1004,7 @@ abstract class DatabaseConnection extends PDO {
     }
     // A previous rollback to an earlier savepoint may mean that the savepoint
     // in question has already been rolled back.
-    if (!in_array($savepoint_name, $this->transactionLayers)) {
+    if (!isset($this->transactionLayers[$savepoint_name])) {
       return;
     }
 
