protected function assertFile($filename)
    {
        if (is_dir($filename)) {
            throw new RawFileCacheException(sprintf('Directory with same name : %s', $filename), RawFileCacheException::DIRECTORY_WITH_SAME_NAME);
        }
        return is_file($filename);
    }