WeakRef::valid

( excerpt from http://php

Description

public function valid(): bool

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

Checks whether the object referenced still exists.