code: static boolean hasEnvironmentVariable(String variable) {
          final String value = System.getenv(variable);
          if (value != null) {
              return true;
          }
          return false;
      }
docs: Checks for environment variable.
  
  @param variable the variable
  @return true, if successful