def should_extract_this(item, NXDL_file_endings_list,
    allowed_parent_directories):
    """
    decide if this item should be extracted from the ZIP download
    
    :return bool:
    """
    for ending in NXDL_file_endings_list:
        if item.endswith(ending):
            if item.split('/')[-2] in allowed_parent_directories:
                return True
    return False
