tpay_key ) && property_exists( $payment_gateway, 'tpay_user' ) && ! empty( $payment_gateway->tpay_user ) && property_exists( $payment_gateway, 'tpay_password' ) && ! empty( $payment_gateway->tpay_password ); } catch ( Throwable $e ) { // Do nothing but log so we can investigate. SafeGlobalFunctionProxy::wc_get_logger()->debug( 'Failed to determine if gateway has an account connected: ' . $e->getMessage(), array( 'gateway' => $payment_gateway->id, 'source' => 'settings-payments', 'exception' => $e, ) ); } return parent::is_account_connected( $payment_gateway ); } }