public function hasHeaders() { if (is_object($this->_headers)) { return $this->_headers->getCount() > 0; } return !empty($this->_headers); }