WordPress File wp-includes/query.php

get_query_var()

Retrieves the value of a query variable in the WP_Query class.

have_comments()

Determines whether current WordPress query has comments to loop over.

have_posts()

Determines whether current WordPress query has posts to loop over.

is_404()

Determines whether the query has resulted in a 404 (returns no results).