<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_yaml_dict(yaml_file):
 """Return a yaml_dict from reading yaml_file. If yaml_file is empty or doesn't exist, return an empty dict instead."""

    try:
        with open(yaml_file, 'r') as file_:
            yaml_dict = yaml.safe_load(file_.read()) or {}
        return yaml_dict
    except FileNotFoundError:
        return {}