code: private function isEncryptionSupportEnabled(array $section)
      {
          if (true === empty($section['key_encryption_algorithms']) && true === empty($section['content_encryption_algorithms'])) {
              return false;
          }
  
          if (true === empty($section['key_encryption_algorithms']) || true === empty($section['content_encryption_algorithms'])) {
              throw new \LogicException('Both key encryption algorithms and content encryption algorithms must be set to enable the encryption support.');
          }
  
          return true;
      }
docs: @param array $section
  
  @return bool