public function attach($form, $user) { if (isset($form->responses[0])) { $response = IepResponse::where('u_fb_form_response_id', $form->responses[0]->id)->first(); if (is_null($response)) { $this->attachResponse($form->responses[0]->id, $user); $this->updateIep($form); return true; } $this->updateIep($form); } return false; }