diff --git a/templates/page.tpl.php b/templates/page.tpl.php
index 94590a8..1b3d3c5 100644
--- a/templates/page.tpl.php
+++ b/templates/page.tpl.php
@@ -8,28 +8,28 @@
         <span class="icon-bar"></span>
       </a>
 
-      <?php if ($logo): ?>
+      <?php if (!empty($logo)): ?>
         <a class="logo pull-left" href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>">
           <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
         </a>
       <?php endif; ?>
 
-      <?php if ($site_name): ?>
+      <?php if (!empty($site_name)): ?>
         <h1 id="site-name">
           <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" class="brand"><?php print $site_name; ?></a>
         </h1>
       <?php endif; ?>
 
-      <?php if ($primary_nav || $secondary_nav || !empty($page['navigation'])): ?>
+      <?php if (!empty($primary_nav) || !empty($secondary_nav) || !empty($page['navigation'])): ?>
         <div class="nav-collapse">
           <nav role="navigation">
-            <?php if ($primary_nav): ?>
+            <?php if (!empty($primary_nav)): ?>
               <?php print render($primary_nav); ?>
             <?php endif; ?>
             <?php if (!empty($page['navigation'])): ?>
               <?php print render($page['navigation']); ?>
             <?php endif; ?>
-            <?php if ($secondary_nav): ?>
+            <?php if (!empty($secondary_nav)): ?>
               <?php print render($secondary_nav); ?>
             <?php endif; ?>
           </nav>
@@ -42,7 +42,7 @@
 <div class="main-container container">
 
   <header role="banner" id="page-header">
-    <?php if ( $site_slogan ): ?>
+    <?php if (!empty($site_slogan)): ?>
       <p class="lead"><?php print $site_slogan; ?></p>
     <?php endif; ?>
 
@@ -51,37 +51,37 @@
 
   <div class="row">
 
-    <?php if ($page['sidebar_first']): ?>
+    <?php if (!empty($page['sidebar_first'])): ?>
       <aside class="span3" role="complementary">
         <?php print render($page['sidebar_first']); ?>
       </aside>  <!-- /#sidebar-first -->
     <?php endif; ?>  
 
     <section class="<?php print _bootstrap_content_span($columns); ?>">  
-      <?php if ($page['highlighted']): ?>
+      <?php if (!empty($page['highlighted'])): ?>
         <div class="highlighted hero-unit"><?php print render($page['highlighted']); ?></div>
       <?php endif; ?>
-      <?php if ($breadcrumb): print $breadcrumb; endif;?>
+      <?php if (!empty($breadcrumb)): print $breadcrumb; endif;?>
       <a id="main-content"></a>
       <?php print render($title_prefix); ?>
-      <?php if ($title): ?>
+      <?php if (!empty($title)): ?>
         <h1 class="page-header"><?php print $title; ?></h1>
       <?php endif; ?>
       <?php print render($title_suffix); ?>
       <?php print $messages; ?>
-      <?php if ($tabs): ?>
+      <?php if (!empty($tabs)): ?>
         <?php print render($tabs); ?>
       <?php endif; ?>
-      <?php if ($page['help']): ?> 
+      <?php if (!empty($page['help'])): ?> 
         <div class="well"><?php print render($page['help']); ?></div>
       <?php endif; ?>
-      <?php if ($action_links): ?>
+      <?php if (!empty($action_links)): ?>
         <ul class="action-links"><?php print render($action_links); ?></ul>
       <?php endif; ?>
       <?php print render($page['content']); ?>
     </section>
 
-    <?php if ($page['sidebar_second']): ?>
+    <?php if (!empty($page['sidebar_second'])): ?>
       <aside class="span3" role="complementary">
         <?php print render($page['sidebar_second']); ?>
       </aside>  <!-- /#sidebar-second -->
