Changed the title to a helper method, and used content_for to check its presence instead of an instance variable