public static function httpFileExistsWithCurl($url) {
        if (!extension_loaded('curl'))
            throw new \Exception('Curl extension not loaded try change your PHP configuration');
        return ($ch = curl_init($url)) ? @curl_close($ch) || true : false;
    }