LaravelFCM\Response\DownstreamResponse::needToBeModify PHP Method

needToBeModify() private method

private needToBeModify ( $index, $result ) : boolean
$index
$result
return boolean
    private function needToBeModify($index, $result)
    {
        if (array_key_exists(self::MESSAGE_ID, $result) && array_key_exists(self::REGISTRATION_ID, $result)) {
            if ($this->tokens[$index]) {
                $this->tokensToModify[$this->tokens[$index]] = $result[self::REGISTRATION_ID];
            }
            return true;
        }
        return false;
    }