If you make this

```
data && data['permalink']
```

...it eliminates the need for the return nil up there