preprocess_page if front I have a preprocess_page function that applys classes to my content if there is a sidebar or not.

  if ($vars['page']['sidebar']) {
    $vars['content_classes'] = 'cool-class';
  }

  else {
    $vars['content_classes'] = 'super-cool-class';
  }


Can I do a similar with adding class if its the front_page. I want it to be included into this one but I do not seem to find the right way to do it.

Thank you very much,
Need to add both condition for sidebar and front page like this.

if (drupal_is_front_page() &amp;&amp; $vars['page']['sidebar']) {
      $vars['content_classes'] = 'cool-class';
}

else {
      $vars['content_classes'] = 'super-cool-class';
}