IsValidLayer
To check the parent layer if is valid.
BOOL IsValidLayer( )
Returns true if the parent layer is valid.
IsValidGrObj
GraphObjTools.h