amended index.html.erb to show restaurants if they exist, else the 'no restaurants' message. using instance variables defined in the controller to bring backend information into the views. avoiding the bad practice of having the view and models interacting directly