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

The classExists function returns 1 if the specified class exists or 0 otherwise.

 if ( $session->classExists( "Router" ) ) {
  print "Router class exists\n”;
 }