processAttributes should work with empty array