Improved error checking in the views to show a message if no products are found