% if not categories == None and not categories == []:
Category
% end