code: public function hasContentIdWithoutAutoUnpublishToState($contentId)
      {
          $qa = $this->createAggregationQuery();
          $qa->match(
              array(
                  'contentId'  => $contentId,
                  'status.autoUnpublishToState' => false
              )
          );
  
          return 0 !== $this->countDocumentAggregateQuery($qa);
      }
docs: @param string $contentId
  
  @return int