I\'m getting data from the server according to my location, I need to check if the data is present to the user if not I need to show some message to the user, how to calcula