should check for `isset($status['pid'])`? also why `false`? how about `null`?