first(); foreach($currencies as $currencyItem) { if($userCurrency == $currencyItem->currency) { $matchesCurrency = $currencyItem; } } ?>