simplified mandatory check for $url