diff --git a/modules/flexmail_webform/src/Plugin/WebformHandler/FlexmailWebformHandler.php b/modules/flexmail_webform/src/Plugin/WebformHandler/FlexmailWebformHandler.php
index 618e111a2cca52909bbfadf97247fbbefc37e4c6..b431ee96d8b503777a780e1b6fa448891caf6a46 100644
--- a/modules/flexmail_webform/src/Plugin/WebformHandler/FlexmailWebformHandler.php
+++ b/modules/flexmail_webform/src/Plugin/WebformHandler/FlexmailWebformHandler.php
@@ -243,7 +243,7 @@ class FlexmailWebformHandler extends FlexmailWebformHandlerBase {
     // Set contact preferences if required.
     if ($preference = $this->configuration['preference']) {
       // First check if contact is already subscribed to selected preference.
-      $contact_preferences = $flexmailManager->getContactPreferenceSubscriptions($contact_id);
+      $contact_preferences = $flexmailManager->getContactPreferenceSubscriptions($contact_id)['_embedded']['item'] ?? [];
       if (array_search($preference, array_column($contact_preferences, 'id')) === FALSE) {
         try {
           $flexmailManager->subscribeContactToPreference($contact_id, $preference);
@@ -261,7 +261,7 @@ class FlexmailWebformHandler extends FlexmailWebformHandlerBase {
     // Set contact interests if required.
     if ($interest = $this->configuration['interest']) {
       // First check if contact has interest label already assigned.
-      $contact_interests = $flexmailManager->getContactInterestLabels($contact_id);
+      $contact_interests = $flexmailManager->getContactInterestLabels($contact_id)['_embedded']['item'] ?? [];
       if (array_search($interest, array_column($contact_interests, 'id')) === FALSE) {
         try {
           $flexmailManager->subscribeContactToInterestLabel($contact_id, $interest);