Checking for cases of data not being present to prevent crashes from nunjucks