Refactoring code, delete the condition.require_all_elements judgment.