I

is-resource

Future compatible is_resource() and get_resource_type() that can understand opaque objects