test x"$url" = x
Some users may be a bit unfamiliar with this longform 'test' construct having trended from that in say their distro's example rc scripts over recent posix and bugfixed decades, easier visual delimited parsing, 4 chars of line width saved, to form of...
[ ! "$var" ]
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html
Some like $() over ``, or indenting line continuations too. As in perl, tmtowtdi, no worries.