def is_fs_type(candidate, type_name):
    """Checks if the a JSON entry is of a specific FeatureScript type.

    Args:
        candidate: decoded JSON object to check the type of
        type_name: string of the FeatureScript Type to check for

    Returns:
        result: True if candidate is of type_name, False otherwise
    """
    result = False
    try:
        if isinstance(type_name, str):
            result = type_name == candidate["typeName"]
        elif isinstance(type_name, list):
            result = any(
                [type_name_one == candidate["typeName"] for type_name_one in type_name]
            )
    except Exception:
        result = False
    return result