Handle null readPosts case better.