def copy_dict_or_new(original: dict) -> dict:
    """Makes a copy of the original dict if not None;
       otherwise returns an empty dict.
    """

    if original is None:
        return dict()

    return dict(original)