Warning: Invalid argument supplied for foreach() Curl SSL fix