Extract arrays.delete() to core/utils