def _recurse_type_check(dictionary, key):
    """
    Checks of the dictionary key is a list or another dictionary
    :param dictionary: The dictionary that has the key
    :param key: the key we are checking
    :return: Boolean
    """

    return isinstance(dictionary[key], dict) if dictionary and key else False