objectToArray added to utils