App\services\PushService::checkDeviceExists PHP Method

checkDeviceExists() private method

Returns a boolean if this account has devices registered for PUSH notifications
private checkDeviceExists ( App\Models\Account $account ) : boolean
$account App\Models\Account
return boolean
    private function checkDeviceExists(Account $account)
    {
        $devices = json_decode($account->devices, TRUE);
        if (count($devices) >= 1) {
            return TRUE;
        } else {
            return FALSE;
        }
    }