Why not do this in the same control statement?
```if (is_null($sourceUri) && ! empty($schema->id))```