check if curl is available before attempting to use it