Site icon Hip-Hop Website Design and Development

A strategy to examine if wordpress set up is self-hosted or hosted through wordpress.com?

I am growing this plugin that wants a strategy to examine the standing of the WordPress set up
What’s the most dependable strategy to decide that?

Any $_SERVER variables or something that would differentiate between the 2?