Check if `location` is available

`[@"name"]` might be called on a nil object.