epl_has_matterport

You can use the epl_has_matterport() function in your templates to check for a valid tour/matterport link before rendering your item. 

<?php
$has_tour = function_exists( 'epl_has_matterport' ) && epl_has_matterport( get_the_ID() );
if ( $has_tour ) {
	?>
	<div id="tour" class="epl-section-inner__panel epl-section-inner__panel--tour">
		<h3 class="epl-section-inner__title">3D Tour</h3>
		<?php echo do_shortcode( 'epl_matterport' ); // Tour. ?>
	</div>			
	<?php	
}