move batcache existance check to right spot