Adding guard for edgecase where cache for path returns nil