Check if the device belongs to apple family, so that we can decide whether to request "child" or "individual" screentime authorization

I have a requirement where I need to check if the device belongs to apple family. Based on that, I can decide whether to request "child" or "individual" screentime authorization.

Till now, the only possible way seems to be by requesting authorization for child, and seeing if it gives error or succeeds. But that is not a good solution, because I want to know in advance about the status whether I can request access or not.

Check if the device belongs to apple family, so that we can decide whether to request "child" or "individual" screentime authorization
 
 
Q