look back at this post.

PHP Code:
//from
if ($response['errors']) {
//to
if ($response['error']) { 
TSIS.