<div id="sidebar">
    <div class="widgets">          
            <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?> 
            <?php endif; ?>
            </div>
    </div>