### Godot version

v4.0.stable.official [92bee43ad]

### System information

Linux - v4.0.stable.official [92bee43ad]

### Issue description

It gives you the possibility of removing unexisting key/value pairs from a dictionary.

### Steps to reproduce

![image](https://github.com/godotengine/godot/assets/69520693/35beadbe-bfdd-4176-9b26-222bbf69cafa)
![image](https://github.com/godotengine/godot/assets/69520693/7ed647e0-a2af-4e58-9f00-f77b7bc7bb02)
![image](https://github.com/godotengine/godot/assets/69520693/f08bf824-8408-45eb-bb84-f1dc7e19e392)


### Minimal reproduction project

N/A
String name = p_name;
	if (!name.begins_with("indices")) {
		return false;
	}
	int index;
	if (name.begins_with("metadata/")) {
		index = name.get_slice("/", 2).to_int();
	} else {
		index = name.get_slice("/", 1).to_int();
	}
	bool valid;
	r_ret = array.get(index, &valid);
	if (r_ret.get_type() == Variant::OBJECT && Object::cast_to<EncodedObjectAsID>(r_ret)) {
		r_ret = Object::cast_to<EncodedObjectAsID>(r_ret)->get_object_id();
	}
	return valid;
}
void EditorPropertyArrayObject::set_array(const Variant &p_array) {