added logic to return message if no blog posts