render partial only if it exists

It might be easier to just catch the error:

  <%= render :partial => 'menu' rescue nil %>