protected function hasHeader(Part $part, $header)
    {
        if (count($part->getHeaders()) < 1) {
            return false;
        }

        return $part
            ->getHeaders()
            ->has($header);
    }
protected function hasHeader(Part $part, $header)
    {
        if (count($part->getHeaders()) < 1) {
            return false;
        }

        return $part
            ->getHeaders()
            ->has($header);
    }
protected function hasHeader ( Part $ part , $ header ) { if ( count ( $ part -> getHeaders ( ) ) < 1 ) { return false ; } return $ part -> getHeaders ( ) -> has ( $ header ) ; }
The confusing zend API makes a custom function for
header checking necessary.

@param Part   $part
@param string $header

@return bool
The confusing zend API makes a custom function for header checking necessary .