How about two different functions like below? Is it possible to combine below two Drupal Template.php functions?
function mytheme_preprocess_node(&$vars)
function mytheme_views_pre_render(&$view)
Example:
function mytheme_preprocess_node(&$vars) {
if some field has option 1 selected
}
AND
function mytheme_views_pre_render(&$view) {
if a view is empty { attach alternative view}
}