It is to check in which ArchiCAD version the object is running. This is helpful for shipping around some version specific problems or to keep an object downward compatible. Checking if the object is running inside ArchiCAD at all or in the web control could be necessary too.