added function to check whether users have a location