can I check whether headers have been sent or not ?