from typing import Optional
from typing import Dict


def dicter(d: Optional[Dict]) -> Dict:
    """Return the provided dict, or an empty dict."""
    if type(d) is dict:
        return d
    return {}