protected function ensureContentTypeHeaderSent() { if (!$this->_contentTypeHeaderSent) { $this->sendContentTypeHeader(); } }