We need to handle the potential error here. If there's an error, `survey` will be undefined below.