(PECL weakref >= 0.2.0)
WeakMap::valid — Returns whether the iterator is still on a valid map element
Returns whether the iterator is still on a valid map element.
This function has no parameters.
    Returns TRUE if the iterator is on a valid element that can be
    accessed, FALSE otherwise.