when the url is invalid then return false

When the URL is invalid or not supported, it return false