code: public boolean isSurveyActive(int surveyId) throws LimesurveyRCException {
          LsApiBody.LsApiParams params = getParamsWithKey(surveyId);
          List<String> surveySettings = new ArrayList<>();
          surveySettings.add("active");
          params.setSurveySettings(surveySettings);
  
          return "Y".equals(callRC(new LsApiBody("get_survey_properties", params)).getAsJsonObject().get("active").getAsString());
      }
docs: Check if a survey is active.
  
  @param surveyId the survey id of the survey you want to check
  @return true if the survey is active
  @throws LimesurveyRCException the limesurvey rc exception