<?php if ($this->countModules('right')): ?>

<!-- insert what you'd like to have happen if there are modules in the right position -->

<?php else : ?>

<!-- insert what happens if there are no modules in the right position -->


<?php endif; ?>