check headersSent