I think it's also better to check if [class](http://us1.php.net/curlfile) `CURLFile` exists.