Use proper check for urls.