Returns the object's active state (boolean) :
active = isActive(object)
Example :
if isActive(object) then print("object is active") end