array_remove is too new to rely on