Check for the existence of posts, archives and categories before using 'em.