Thanks. Valid point. I've added a new check to ensure 'Set-Cookie' is not null.