Checks for connectivity before executing search