segmentio/analytics-php — pull request #18 by gmoreira (2013-05-26 03:35:32+00:00)
Title: Fatal Error: Undefined offset 1

In some scenarios of bad or intermittent internet connectivity this will happen.

I was unable to debug the code at a moment of time that caused the error in order to better understand the content of response. This at least seems a sufficient safety check to have in place.