[TASK] Take current field value into consideration before removing collection field

The field should be visible only when there are files selected.