Move empty content check to an filter.