if (is_plugin_active('dna-custom-function.php')) { // name of plugin file
   
  // Let's go!
 
} else {
 
  // Hold your horses Hombre!
 
}