public function getCurrency($currency = null): ?array
    {
        $currency = $currency ? mb_strtoupper($currency) : null;

        return $this->get("currency.{$currency}") ?: (current($this->get('currency', [])) ?: null);
    }
public function getCurrency($currency = null): ?array
    {
        $currency = $currency ? mb_strtoupper($currency) : null;

        return $this->get("currency.{$currency}") ?: (current($this->get('currency', [])) ?: null);
    }
public function getCurrency ( $ currency = null ) : ? array { $ currency = $ currency ? mb_strtoupper ( $ currency ) : null ; return $ this -> get ( "currency.{$currency}" ) ? : ( current ( $ this -> get ( 'currency' , [ ] ) ) ? : null ) ; }
Get the given currency or fallback to first currency.

@param string|null $currency

@return array|null
Get the given currency or fallback to first currency .