Simple example of conditional logic applied to a WordPress sidebar. Add the following code snippet to your theme functions.php
file
<?php if(dynamic_sidebar('footer_left' ): )?>
<?php else: ?>
<p>This message will display if there's no content in the sidebar.</p>
<?php endif; ?>