$boolean = $session->getPropIsReadonly( $class, $property )

The getPropIsReadonly() function indicates whether the specified class property is read-only.

 if ( $session->getPropIsReadonly( "Router", "Vendor" ) ) {
  print "Vendor is readonly\n”;
 } else {
  print "Vendor can be changed\n”;
 }