data.linkURL would never be truthy here, so you can remove that first part..