Add new option to toArray so we can filter data