accountFrom; if (!$fromAccount) { return; } $accountable = $fromAccount->accountable; if (!$accountable) { return; } $profileType = get_class($accountable); $profileId = $accountable->id; if (!CallCreditService::profileHasCredits($profileType, $profileId)) { CallCreditService::pauseAllActiveCalls($profileType, $profileId); } } }