Added the check for URL