if ($photo !== '') {
                                        if (strpos($photo, '1') !== false) {
                                            $tblStudentAgreementType = Student::useService()->getStudentAgreementTypeById(2);
                                            Student::useService()->insertStudentAgreement($tblStudent,
                                                $tblStudentAgreementType);