Little help with Plugin check if is enabled

Hello,
Can someone help me with this?
I tried to figure but i can’t.
I have plugin second title to show my second title and i need to add this to my title in php (done and is ok) but i need to check first if plugin is enable then to show this. Without this check , when i disable plugin, in title area is an error
<?php echo get_secondary_title(); ?>
Can someone help me with this please? also if this need to be escaped

Thank you so much