null check for user location