Move array utils to utils file