How to display a view within a template only if there is something to display
Instead of embedding a view in a template, please consider having your view output a block display, which you can place on your site using the Block System, Panels or Context.