isConnectionAvailable

refactoring done, isConnectionAvailable works as need.