private function isPathWritable(): bool
    {
        if (! file_exists($this->path)) {
            return is_writable(dirname($this->path));
        }

        return is_writable($this->path);
    }
private function isPathWritable(): bool
    {
        if (! file_exists($this->path)) {
            return is_writable(dirname($this->path));
        }

        return is_writable($this->path);
    }
private function isPathWritable ( ) : bool { if ( ! file_exists ( $ this -> path ) ) { return is_writable ( dirname ( $ this -> path ) ) ; } return is_writable ( $ this -> path ) ; }
Return whether the path is writable.

@return bool
Return whether the path is writable .