Defaulting $es_url to undef rather than empty string