code: public function isSuccessExit()
      {
          $this->exitCode = pcntl_wexitstatus($this->status);
          return (pcntl_wifexited($this->status) && ($this->exitCode === 0));
      }
docs: Check exit code and return TRUE if process was ended successfully.
  
  @return bool