Is there a way to tell if our app was installed via MDM?

Title says it all -- there are a couple of things we might do differently during upgrades, but also we'd like to know for our own statistics.

This is on macOS, so we can use /usr/bin/profiles, but I was curious if there was a way to tell programmatically that didn't involves system() or posix_spawn().

Is there a way to tell if our app was installed via MDM?
 
 
Q