public function remove($index) { $this->validateBatchIndexExists($index); unset($this->batches[$index]); }