added: ensure_array