Remove an item from an array