Thanks for the reply, I tried that but it's still showing, I may be doing something wrong though.
I've added to the code in my example above, the end result will have the extrafield wrapped in a span and wording before it. When the field is empty I was needing to hide the span and wording. This is currently what I have:
<?phpif(!empty($str))?> Sub Title:<br /> <span class="itemSubTitle"> <?php$custom=$this->item->extra_fields;echo$custom->value;?> </span> <?phpendif;?>