avoid crash if url is nil