all() as $field) { if (in_array($field->name(), $config, true)) { return true; } } return false; } }