Does this work?
Are you sure it's `empty($wrapper->mica_origin_url)` and not `empty($wrapper->mica_origin_url->value())`