original_string: public function itemCount(array $condition, array $data)
      {
          if (!isset($data['product_id']) || !isset($data['bundle'])) {
              return false;
          }
  
          if (!is_array($data['bundle'])) {
              $data['bundle'] = explode(',', (string) $data['bundle']);
          }
  
          return $this->compare(count($data['bundle']), $condition['value'], $condition['operator']);
      }
code: public function itemCount(array $condition, array $data)
      {
          if (!isset($data['product_id']) || !isset($data['bundle'])) {
              return false;
          }
  
          if (!is_array($data['bundle'])) {
              $data['bundle'] = explode(',', (string) $data['bundle']);
          }
  
          return $this->compare(count($data['bundle']), $condition['value'], $condition['operator']);
      }
code_tokens: public function itemCount ( array $ condition , array $ data ) { if ( ! isset ( $ data [ 'product_id' ] ) || ! isset ( $ data [ 'bundle' ] ) ) { return false ; } if ( ! is_array ( $ data [ 'bundle' ] ) ) { $ data [ 'bundle' ] = explode ( ',' , ( string ) $ data [ 'bundle' ] ) ; } return $ this -> compare ( count ( $ data [ 'bundle' ] ) , $ condition [ 'value' ] , $ condition [ 'operator' ] ) ; }
docstring: Whether the product has the given number of bundled items
  @param array $condition
  @param array $data
  @return boolean
docstring_tokens: Whether the product has the given number of bundled items