Job execution pid check

$pid = intval($jobExecution->getPid();
if ($pid) > 0) {