I have this array:
$term = array();
For example:
$common_item = array('id' => 0, 'full_name' => 'my great name'); //etc
$first_item = array('name' => 'Robert', 'item' => $common_item);
$second_item = array('name' => 'Roberto', 'item' => $common_item);
$term[] = $first_item;
//check if terms already has an item with the same item(common_item) and don't add
$term[] = $second_item;
So both items in term have the same 'item' value. How can i check if term item already has the same item in terms array before adding?