mapped[$this->index][$this->value])) { $currency = TransactionCurrency::find($this->mapped[$this->index][$this->value]); } else { $currency = TransactionCurrency::whereCode($this->value)->first(); } return $currency; } }