find($accountId); if (null === $account) { return false; } if ($account->accountType->type !== AccountType::ASSET && $account->accountType->type !== AccountType::DEFAULT) { return false; } return true; } }