Try Catch for 'inspect' function which might be unavailable.