check if posts are available before trying to build the dates-archive