Change default value of $response from null to empty array

Line 246 produce warning: array_key_exists() expects parameter 2 to be array, null given...