added exception handling for when there are no comments under a post