// If the user was previously subscribed but has unsubscribed now, the `getConfirmedAt()`
// will still be set. So we need to check for the status as well.
if($recipient->getStatus() !== self::STATUS_OPT_OUT && $recipient->getConfirmedAt()){ returnnewNoContentResponse(); } }