public boolean available() {
        return upstream != null && attemptCount <= maxRetryAttempts;
    }
Checks if upstream present (not null) and usage does not exceed max value

@return true if upstream available, false otherwise
server/src/main/java/com/epam/aidial/core/server/upstream/UpstreamRoute.java