return empty array if no relations set in toJSON