Hello, I feel like I am beating my head against a brick wall on this... I am trying to detect if an array is empty in order to display or not display an image with popup containing a youtube embedded video.

Code:
<?php if (isset($teamMetas['video_code'])) { echo <a href="#pop_up_<?php echo $team->ID; ?>" class="fancybox-media"  rel="media-gallery"><img src="<?php bloginfo('template_url');
...