public function isNodeTrashAllowed()
    {
        $userClassIDArray = eZUser::contentClassIDs();

        $class = $this->attribute( 'object' )->attribute( 'content_class' );

        // If current object has ezuser attributes, it can't be sent to trash
        if ( in_array( $class->attribute( 'id' ), $userClassIDArray ) )
        {
            return false;
        }

        // Checking for children using classes with ezuser attribute. Using == because subTreecount returns strings
        return $this->subTreeCount(
                    array(
                        'Limitation' => array(),
                        'SortBy' => array( 'path' , false ),
                        'IgnoreVisibility' => true,
                        'ClassFilterType' => 'include',
                        'ClassFilterArray' => $userClassIDArray,
                        'AsObject' => false
                    )
                ) == 0 ;
    }