Determining If PIM Optional Package Is Available
It is needed to check whether this package is available or not. We can do it with the following code.
You should also use the returned version to make sure your code is version compatible. At this time, however, only version “1.0” is available. The call will return null if the optional package is not available.