What I would do is create my own function and reference that in the first sidebar array.
You could either use the gist (simplifying the checks and changing the echo to return true;) or use PHP’s get_included_files to check to see if the templates have been included.