Specific entry in a structure field

Another way would be to get the item by value, e.g.:

$item = $winerymap->toStructure()->findBy('wineryname', 'something');

Same thing as with the nth() approach: You always need to check if the item is valid and provide a fallback in case it couldn’t be found.