WordPress at a glance
function is not described

WP_Query::have_comments() WP 2.2.0

Whether there are more comments available.

Automatically rewinds comments when finished.

This is a method of the class: WP_Query

No Hooks.

Return

true/false. True, if more comments. False, if no more posts.

Usage

$WP_Query = new WP_Query();
$var = $WP_Query->have_comments();

Code of WP Query::have comments: wp-includes/class-wp-query.php WP 5.2

<?php
public function have_comments() {
	if ( $this->current_comment + 1 < $this->comment_count ) {
		return true;
	} elseif ( $this->current_comment + 1 == $this->comment_count ) {
		$this->rewind_comments();
	}

	return false;
}