You could just do:
```
if (!$this->dimension_upload_widgets[$shortname]->isUploaded()) {
   $valid = false;
   break;
}
```