If you used a deferred promise here instead you could ``resolve()`` as soon as you match the transaction token which would let you stop iterating transactions.