WeakRef::valid

( excerpt from http://php

public function valid(): bool;

net/manual/en/weakref.valid.php )

Checks whether the object referenced still exists.