There's no need to create this utility function (and run it) for targets/frames that aren't Objective-C/Objective-C++.