For some reason reset cache was blowing up so adding the check we do not invoke it on a nil object.