AppModel.IsEditorActive

Determines if there's a document loaded

public readonly bool IsEditorActive