Why not writing just
if (!Sys) {
}
Remember that
Sys
is also an object. In this approach, you make no difference between undefined and null (different objects in JavaScript), but in many cases this difference does not have to be made.
The rest of your post is not quite clear to me, sorry. Your follow-up questions will be welcome.
—SA