where(['_logic' => 'or', 'account' => $account, 'phone' => $account])->find(); if ($user) { return true; } return false; } }