selection_has_parts
if (selection_has_parts(res, data.all_parts[j]))
if (selection_has_parts(selected, parts))