ping a url and return boolean based on result