original_string: protected function canDelete($field_value_id)
      {
          $sql = 'SELECT c.product_id
                  FROM product_field pf
                  LEFT JOIN cart c ON(pf.product_id = c.product_id)
                  WHERE pf.field_value_id=?';
  
          $result = $this->db->fetchColumn($sql, array($field_value_id));
          return empty($result);
      }
code: protected function canDelete($field_value_id)
      {
          $sql = 'SELECT c.product_id
                  FROM product_field pf
                  LEFT JOIN cart c ON(pf.product_id = c.product_id)
                  WHERE pf.field_value_id=?';
  
          $result = $this->db->fetchColumn($sql, array($field_value_id));
          return empty($result);
      }
code_tokens: protected function canDelete ( $ field_value_id ) { $ sql = 'SELECT c.product_id
                  FROM product_field pf
                  LEFT JOIN cart c ON(pf.product_id = c.product_id)
                  WHERE pf.field_value_id=?' ; $ result = $ this -> db -> fetchColumn ( $ sql , array ( $ field_value_id ) ) ; return empty ( $ result ) ; }
docstring: Whether the field value can be deleted
  @param integer $field_value_id
  @return boolean
docstring_tokens: Whether the field value can be deleted