public function check(string $listId, string $email): bool
    {
        $result = $this->status($listId, $email);
        return in_array($result, ['subscribed',  'pending']);
    }
public function check(string $listId, string $email): bool
    {
        $result = $this->status($listId, $email);
        return in_array($result, ['subscribed',  'pending']);
    }
public function check ( string $ listId , string $ email ) : bool { $ result = $ this -> status ( $ listId , $ email ) ; return in_array ( $ result , [ 'subscribed' , 'pending' ] ) ; }
Checks to see if an email address is subscribed to a list
Checks to see if an email address is subscribed to a list