check for invalid PID