You should assign ```php $request->request->get('elements', array())) ``` outside the loop