Setting alert only if document is created by subordinate

We want to set an alert with following condition.

Recipient should receive mail only if owner of document is reporting to recipient.

Kindly advise, how it can be done?

Can’t think of an easy way. You can hard code it based on if doc.owner not in ("", .... )