@method defined checks if a variable is undefined returns false if {variable} undefined or {this} === {window||global} @param variable {any} the variable to check is defined @returns is_defined {boolean} returns true if defined AND not root