NSURLConnection wrapper

Replace `(!urlPath || (urlPath && urlPath.length == 0))` with `urlPath.length == 0`