[PD] how to detect if array has changed