protected function checkExists($id)
    {
        $filter = array(
            'fields' => array(
                array(
                    'field' => 'id',
                    'compare' => '=',
                    'value' => $id,
                ),
            ),
        );
        $exists = $this->rubric->count($filter);
        return $exists?true:false;
    }
protected function checkExists($id)
    {
        $filter = array(
            'fields' => array(
                array(
                    'field' => 'id',
                    'compare' => '=',
                    'value' => $id,
                ),
            ),
        );
        $exists = $this->rubric->count($filter);
        return $exists?true:false;
    }
protected function checkExists ( $ id ) { $ filter = array ( 'fields' => array ( array ( 'field' => 'id' , 'compare' => '=' , 'value' => $ id , ) , ) , ) ; $ exists = $ this -> rubric -> count ( $ filter ) ; return $ exists ? true : false ; }
Check for exists

@param string $id
@return boolean
Check for exists