diff --git a/Gateway/MailChimpSubscriberGateway.php b/Gateway/MailChimpSubscriberGateway.php index 0e697af..dc607ec 100644 --- a/Gateway/MailChimpSubscriberGateway.php +++ b/Gateway/MailChimpSubscriberGateway.php @@ -133,7 +133,7 @@ public function hasStatus(string $email, string $listId, string $status): bool ); // we have found a member - if (is_array($member) && !empty($member)) { + if (is_array($member) && !empty($member) && array_key_exists('status', $member)) { return ($member['status'] === $status); }