How can I check if the current page is a taxonomy term page, similarly to what done with the following code used to check if the current page is the front page?
if (drupal_is_front_page()) {
// The current page is the front page.
}
else {
// It is not the front page.
}