private function update_current_iterator() { $this->current_iterator = $this->chain->valid() ? Crankshaft::ToIterator($this->chain->current()) : null; if ($this->current_iterator !== null) { $this->current_iterator->rewind(); } }