Tom,
Unless there may be some other container at the form's level I woudl suggest using Thisform as it allows you to place your masterobject anywhere inside the form (on a page for example).
The code to check for the existance of a form should be as Erik showed you;
IF TYPE("Thisform.Name") = "C"
ELSE
ENDIF