checks for existing locations when creating new one.