Renamed hasProcessByProcessId to hasProcessById