Safer checking on a batch finished function, utility func.