How to detect if Geolocation is enabled?

Hi Guys, I’m using cordova-plugin-geolocation and I’d like to detect and popup a message when geolocation is disabled on a device. How do I do that?