GPS Verification

I have a form that when submitted sends the users location and saves it in the database. However; my issue is that an address gets saved even if the GPS is not enabled. It gets some random nearby address and is breaking my application.

Is there a way to check if GPS is actually enabled and only submit address, otherwise to send a blank address?

Any ideas would be greatly appreciated.