PHP if statement with tabbed panels

I am using the spry tabbedpanels to display information on a webpage pulling information from my database. Right now I have it set so that when a variable is “null” it displays a generic message. That code looks like this.

  • Brochure
  • Videos
  • Additional Images
<?php echo $row_rsDetails['ModelName']; ?>

<?php echo (is_null($row_rsDetails['Video'])) ? 'No video available at this time, please check back later' : $row_rsDetails['Video']; ?>

But I would rather have it not create the tab if the variable is null. I have tried using an if statement wrapped around the div tag that creates said tab but it tells me i have a syntax error.

Here is the code I have tried to use to make this happen. However all it gives me is a blank page.
<?php
if ($row_rsDetails[‘Video’] !== null)
return (

  • Videos
  • )
    ?>
    Sponsor our Newsletter | Privacy Policy | Terms of Service