diff --git a/Model/Service/TransactionHandlerService.php b/Model/Service/TransactionHandlerService.php
index <HASH>..<HASH> 100755
--- a/Model/Service/TransactionHandlerService.php
+++ b/Model/Service/TransactionHandlerService.php
@@ -574,7 +574,9 @@ class TransactionHandlerService
         if ($transactionType && !empty($transactions)) {
             $filteredResult = [];
             foreach ($transactions as $transaction) {
-                if ($transaction->getTxnType() == $transactionType && $transaction->getIsClosed() == $isClosed) {
+                $condition = $transaction->getTxnType() == $transactionType
+                && $transaction->getIsClosed() == $isClosed;
+                if ($condition) {
                     $filteredResult[] = $transaction;
                 }
             }
Added code improvements in transaction handler service