Refactor to swap int[] with ArrayList for the required PID list

ArrayList is much easier to manage
Add a safe return in case there are no PMTs found