public function isPipe()
    {
        if (\is_null($this->isPipe)) {
            $this->isPipe = false;
            if ($this->isAttached()) {
                $mode = fstat($this->stream)['mode'];
                $this->isPipe = ($mode & 0010000) !== 0;
            }
        }
        return $this->isPipe;
    }