@christianv Could this be clarified with e.g. 
  for link in link.categories
?