This `if` is not necessary, because in case when protocol is an empty string we always got just path: `path = '' + path`.