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