How to check whether multi value field is of type field_collection_item or not? I am trying to check the type of multi value field is a field_collection_item or not inside computed field using this code:

$wrapper = entity_metadata_wrapper($entity_type, $entity);  
$fields_info = $wrapper-&gt;getPropertyInfo();  
foreach ($fields_info as $req_field) {

  if ($req_field['type']=='field_collection_item') {  
    //do something here
  }
}


The if statement failed as $req_field['type'] returns list&lt;field_collection_item&gt;.

Any ideas?
That's how an EntityMetadataWrapper stores multiple fields. There are only those two types, so just use

if($req_field['type'] == 'field_collection_item' || $req_field['type'] == 'list&lt;field_collection_item&gt;') {  
  // So something here
}


Or some variation on that.