checking Connection object availability in offline check