check if transaction.error is nil