$boolean = $session->primitiveIsAvailable( $primitive_name )

The primitiveIsAvailable() function checks whether the named primitive is available in the Domain Manager.

A value of 1 means that it is available, and value of 0 means that it is not available, either because it is an undefined primitive or it was introduced in a later version of the Domain Manager software.

 if ( $session->primtiveIsAvailable (
    "getMultipleProperties" ) {
  $vendor, $model ) = $session->getMultipleProperties (
     $obj, [ "Vendor", "Model" ] );
 } else {
  $vendor = $obj->{Vendor};
  $model = $obj->{Model};
 }