If the issue is that you don't want any output from that file, you could buffer it:
ob_start();
require "path/to/file.php"; // var is not set
ob_end_clean();
// continue with script...
Not necessarily as good as editing a copy of the included file to only do what you need, but it could be a quick fix.