Yes, here pid or processName will be null.
I think to change this two into @var $process array and allow setting in config an array of process names or pids to check.