do we know if this is this a somewhat accepted way of determining whether a process is the parent? also, does it makes sense to you to need that check here, or does the whole mechanism seem weird?