preprocess_page if front
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';
}