Check if location exists before saving