Introduce another check in cache has function.