diff --git a/core/themes/seven/page.tpl.php b/core/themes/seven/page.tpl.php
index 4d40cf8..3e6a360 100644
--- a/core/themes/seven/page.tpl.php
+++ b/core/themes/seven/page.tpl.php
@@ -10,7 +10,7 @@
   </div>
 
   <div id="page">
-    <?php if ($secondary_local_tasks): ?>
+    <?php if ($secondary_local_tasks['#secondary']): ?>
       <div class="tabs-secondary clearfix"><ul class="tabs secondary"><?php print render($secondary_local_tasks); ?></ul></div>
     <?php endif; ?>
 
@@ -19,7 +19,7 @@
       <?php if ($messages): ?>
         <div id="console" class="clearfix"><?php print $messages; ?></div>
       <?php endif; ?>
-      <?php if ($page['help']): ?>
+      <?php if (isset($page['help']['system_help']['content'])): ?>
         <div id="help">
           <?php print render($page['help']); ?>
         </div>
