Display div class ONLY in case function exist?
I tried to use that code this way, but it didn't give me what I need.

    <?php if (function_exists('postbar')) : ?>
    <div class="mystyle">
    <?php postbar(); ?>
    </div>
    <?php endif; ?>

I want to display "mystyle" class ONLY in case postbar function exist.

Is it possible ?

Thanks
Display div class ONLY in case function exist?
===

I tried to use that code this way, but it didn't give me what I need.

    <?php if (function_exists('postbar')) : ?>
    <div class="mystyle">
    <?php postbar(); ?>
    </div>
    <?php endif; ?>

I want to display "mystyle" class ONLY in case postbar function exist.

Is it possible ?

Thanks