Handle cases when 'entities' isn't defined