Неожиданный {ожидаемый (?

Ошибка анализа: синтаксическая ошибка, неожиданный '{', expecting '(' in /home/a7237281/public_html/include/session.php в строке 313

это ошибка, которую я получаю, относящуюся к этому коду

//check the emails $field = "email"; //Use field name for email $field2 = "email2"; if(!$subemail || strlen($subemail = trim($subemail)) == 0) { $form->setError($field, "* Email not entered"); } else if { /* Check if valid email address */ $regex = "^[_+a-z0-9-]+(\.[_+a-z0-9-]+)*" ."@[a-z0-9-]+(\.[a-z0-9-]{1,})*" ."\.([az]{2,}){1}$"; if(!eregi($regex,$subemail)) { $form->setError($field, "* Email invalid"); } else if ($subemail !== $subemail2) { $form->setError($field2, "* Emails does not match"); } $subemail = stripslashes($subemail); } /* Check if email is already in use */ else($database->emailTaken($subemail)) { $form->setError($field, "* Email address already in use"); } 

И его обращение к {после первого else if.

Я редактировал весь фрагмент кода, что мне теперь делать?