The Wow API has the isAddonLoaded function:
http://www.wowwiki.com/API_IsAddOnLoaded
But if you have your condition ask for that on loadup it will only work if the requested addon is already loaded. Which may be unlikely.
Thus you want want to register an event to your raidframes that ask in the game if an addon is loaded and disable the raidframes based on this.