How to check if ScriptX is installed

Upon the window.onload event, test whether or not the object property of the ScriptX or Security Manager object returns as a valid object. The way to do that is shown in the script snippet below: