Check that $opts['CURLOPT_FOLLOWLOCATION'] isset before using the var