Move content check to separate method.