Queries for the existence of a field.
string $field: The name of the field.
string $function: The aggregate function.
$langcode: (optional) The language code.
\Drupal\Core\Entity\Query\QueryAggregateInterface The called object.
public function existsAggregate($field, $function, $langcode = NULL);