To find out whether a presentation has a title master, check the HasTitleMaster property
Sub hasMaster() If Not ActivePresentation.HasTitleMaster Then ActivePresentation.AddTitleMaster End Sub