how to check if a formarray is empty code example
Example: formarray set value at index
((this.form.get('controls') as FormArray).at(index) as FormGroup).get('description').patchValue(item.description);
((this.form.get('controls') as FormArray).at(index) as FormGroup).get('description').patchValue(item.description);