returnfunction() --Create a variable with the possible object localmyObject = Root() --Check if it is an object localmyReturn = IsObjectValid(myObject) --Print the result ifmyReturn == nilthen ErrPrintf("It is not a valid object") else Printf("It is an object") end end