def is_managed_document(document):
    """Utility for determining whether a document is wrapped by
    ``pegleg/PeglegManagedDocument/v1`` pattern.

    :param dict document: Document to check.
    :returns: True if document is managed, else False.
    :rtype: bool

    """

    return document.get('schema') == "pegleg/PeglegManagedDocument/v1"