Make sure $arr[$k] is set