@shacker `for var link in link.categories` should only be used when it is an object. In this case it's an array so we should use a regular for loop