is_category()

Function: Is the query for an existing category archive page?

Source: wp-includes/query.php:240

is_tag()

Function: Is the query for an existing tag archive page?

Source: wp-includes/query.php:264