(PHP 5, PHP 7, PHP 8)
CachingIterator::valid — Check whether the current element is valid
Checks whether the current element is valid.
A CachingIterator has no current element until
CachingIterator::rewind() is called, which
foreach does automatically.
This function has no parameters.