added a check incase cache fails to load