[PD-dev] how to detect if array has changed