function hasObjectAttributeContent( $contentObjectAttribute )
    {
        $page = $contentObjectAttribute->content();
        $zones = $page->attribute( 'zones' );
        if ( !is_array( $zones ) )
            return false;

        foreach ( $zones as $zone )
        {
            if ( $zone->getBlockCount() > 0 )
                return true;
        }

        return false;
    }
function hasObjectAttributeContent( $contentObjectAttribute )
    {
        $page = $contentObjectAttribute->content();
        $zones = $page->attribute( 'zones' );
        if ( !is_array( $zones ) )
            return false;

        foreach ( $zones as $zone )
        {
            if ( $zone->getBlockCount() > 0 )
                return true;
        }

        return false;
    }
function hasObjectAttributeContent ( $ contentObjectAttribute ) { $ page = $ contentObjectAttribute -> content ( ) ; $ zones = $ page -> attribute ( 'zones' ) ; if ( ! is_array ( $ zones ) ) return false ; foreach ( $ zones as $ zone ) { if ( $ zone -> getBlockCount ( ) > 0 ) return true ; } return false ; }
Checks if contentobject attribute has content

@param eZContentObjectAttribute $contentObjectAttribute
@return bool
Checks if contentobject attribute has content