Theme And Add-On Tie Up

Is it possible to have a theme and add-on tie up? For example, a certain theme will not work of a certain add-on is not installed.

For example, the first and last strings in the design/themes/YOUR_THEME/templates/index.tpl file should be:

{if $addons.ADDON_ID.status == 'A'}
... CONTENT HERE ...
{/if}

For example, the first and last strings in the design/themes/YOUR_THEME/templates/index.tpl file should be:

{if $addons.ADDON_ID.status == 'A'}
... CONTENT HERE ...
{/if}

Thank you!