I think this can be simplified:
https://github.com/duckduckgo/zeroclickinfo-goodies/pull/365/files#preview_bucket_150

```perl
if (defined ...) {
    if ( ref ... ) {
        $key = ... ;
    }
    return $data{$key} ... ;
}
return;
```

This way there's only one return and only one secondary check.