private function hasContentType($contentType)
	{
		foreach ($this->getHeader('Content-Type') as $key => $value) {
			if (substr($value, 0, strlen($contentType)) == $contentType) {
				return true;
			}
		}

		return false;
	}
private function hasContentType($contentType)
	{
		foreach ($this->getHeader('Content-Type') as $key => $value) {
			if (substr($value, 0, strlen($contentType)) == $contentType) {
				return true;
			}
		}

		return false;
	}
private function hasContentType ( $ contentType ) { foreach ( $ this -> getHeader ( 'Content-Type' ) as $ key => $ value ) { if ( substr ( $ value , 0 , strlen ( $ contentType ) ) == $ contentType ) { return true ; } } return false ; }
Checks if a content type header exists with the given content type.

@param string $contentType
@return bool true if a content type header exists with the given content type.
Checks if a content type header exists with the given content type .