use boolean type on `is_pid`