if urlsplit(url).path:
I wanted to highlight that it's not the call to `urlsplit` that is a problem, so that's why I inserted a `check` in-between.