[UPDATE] improve URL check
Merge pull request #23 from iAmShorty/connection-check

[UPDATE] improve URL check