Method get_or_create on arrays