public static function getCurrencies($symbols = null)
    {
        $currencies = Cache::call("get-currencies", function() {
            $currencies = Yaml::decodeFromFile(__DIR__ . "/../data/currencies.yaml");

            if ($currencies instanceof SerialObject) {
                $currencies = $currencies->asArray();
            }

            return array_map(function($data) {
                if (!isset($data["prefix"])) {
                    $data["prefix"] = "";
                }
                if (!isset($data["suffix"])) {
                    $data["suffix"] = "";
                }
                return $data;
            }, $currencies);
        });

        if ($symbols) {
            return $currencies;
        }

        $return = [];
        foreach ($currencies as $key => $val) {
            $return[$key] = $val["title"];
        }

        return $return;
    }