<?php
function joomlaposition_16() {
    $document = JFactory::getDocument();
    $view = $document->view;
    $isPreview  = $GLOBALS['theme_settings']['is_preview'];
    if (isset($GLOBALS['isModuleContentExists']) && false == $GLOBALS['isModuleContentExists'])
        $GLOBALS['isModuleContentExists'] = $view->containsModules('top-mod-left') ? true : false;
?>
    <?php if ($isPreview || $view->containsModules('top-mod-left')) : ?>

    <?php if ($isPreview && !$view->containsModules('top-mod-left')) : ?>
    <!-- empty::begin -->
    <?php endif; ?>
    <div class="data-control-id-1370268 bd-joomlaposition-16 clearfix" <?php echo buildDataPositionAttr('top-mod-left'); ?>>
        <?php echo $view->position('top-mod-left', 'block%joomlaposition_block_16', '16'); ?>
    </div>
    <?php if ($isPreview && !$view->containsModules('top-mod-left')) : ?>
    <!-- empty::end -->
    <?php endif; ?>
    <?php endif; ?>
<?php
}