`var currentBatch;` we can just make it undefined, no need for null.