when the url is invalid then return false
Merge pull request #7 from Feuda/invalid_url

when the url is invalid then return false