Add application.has_connection