$boolean = $session->isInstrumented( $class )

The isInstrumented() function indicates whether the specified class has associated instrumentation.

 $flag = $session->isInstrumented( "TCPConnect" );