protected function isCacheExpired($fromCurrency, $toCurrency)
    {
        $cacheCreationTime = $this->getCacheCreationTime($fromCurrency, $toCurrency);
        return (time() - $cacheCreationTime) > $this->getCacheTimeOut()->format('%s');
    }