`proc_get_status` returns false on failure, otherwise, the array always contains `pid` key see https://github.com/php/php-src/blob/master/ext/standard/proc_open.c#L322-L387