Remove item by index in array