<?php if ( $mainbar_left_title && $mainbar_left_image ) : ?>
See http://www.php.net/manual/en/language.operators.logical.php
<?php if ( $mainbar_left_title && $mainbar_left_image ) : ?>
See http://www.php.net/manual/en/language.operators.logical.php