Properly handle no posts

fixes #4058
- Remove unneeded code