We should either add `&& options.response && options.response.save_to_gallery_url` or set `options.response = options.response || []` at the top of the function.