code: public static boolean canScaleFor(final List<Long> segmentsToSeal, final EpochRecord currentEpoch) {
          return segmentsToSeal.stream().allMatch(x -> currentEpoch.getSegment(x) != null);
      }
docs: Method to check that segments to seal are present in current epoch.
  
  @param segmentsToSeal segments to seal
  @param currentEpoch current epoch record
  @return true if a scale operation can be performed, false otherwise