Simplify `validPid`, thanks Ben