def yaml_check(md):
    """
    Perform bask checks on the YAML metadata block return a data
    structure indicating the problem, if any.

    # Return

    A dictionary
    - block:bool - A boolean indicating if the YAML block is present
        - True if the block is present, False if it is not
    - UUID:bool - A boolean indicating that the YAML block has a UUID keyword
        - True if the UUID keyword exists and the contents has a length greater than 0, False otherwise.
    - md:MarkdownDocument - The MarkdownDocument object

    # NOTE

    This might seem redundant, but the MarkdownDocument object does lazy
    loading. That is, it will only load the contents of the Markdown
    document and process the items within it when it needs too.

    """

    results = {}

    results["block"] = True if md.yaml_block else False
    results["UUID"] = (
        True if "UUID" in md.yaml_block and len(md.yaml_block["UUID"]) > 0 else False
    )
    results["md"] = md

    return results