correctly return false if no connection could be established