Only call SEO function when data is available