public function canDelete($category_group_id)
    {
        $sql = 'SELECT category_id FROM category WHERE category_group_id=?';
        $result = $this->db->fetchColumn($sql, array($category_group_id));
        return empty($result);
    }
public function canDelete($category_group_id)
    {
        $sql = 'SELECT category_id FROM category WHERE category_group_id=?';
        $result = $this->db->fetchColumn($sql, array($category_group_id));
        return empty($result);
    }
public function canDelete ( $ category_group_id ) { $ sql = 'SELECT category_id FROM category WHERE category_group_id=?' ; $ result = $ this -> db -> fetchColumn ( $ sql , array ( $ category_group_id ) ) ; return empty ( $ result ) ; }
Whether a category group can be deleted
@param integer $category_group_id
@return boolean
Whether a category group can be deleted