@developGr
Easiest way is via jquery, where you first identify if content is empty and if yes, then you will hide it.
Sample code (that must be customized by you).
<script>
$(document).ready(function() {
if($('#some-id span.class').text() == '') {
$('#some-id').hide(0);
}
});
</script>