def tryGetListFromDict(d: dict, key: str):
    """
    Gets element from dict, if not present returns empty list
    :param d: dict
    :param key: key for element
    :return: element or empty list
    """
    try:
        return d[key]
    except KeyError:
        return []