public function checkEmailExists($email) { $result = GlbUser::findOne(['email' => $email]); if ($result) { return true; } return false; }