function isGood()
    {
        $meta = stream_get_meta_data($this->stream);
        $mode = $meta['mode'];

        return false === strpos($mode, 'r') || true === strpos($mode, 'r+');
    }
function isGood()
    {
        $meta = stream_get_meta_data($this->stream);
        $mode = $meta['mode'];

        return false === strpos($mode, 'r') || true === strpos($mode, 'r+');
    }
function isGood ( ) { $ meta = stream_get_meta_data ( $ this -> stream ) ; $ mode = $ meta [ 'mode' ] ; return false === strpos ( $ mode , 'r' ) || true === strpos ( $ mode , 'r+' ) ; }
Checks if sink stream is good for write.

@return bool
Checks if sink stream is good for write .