Removes the element at the given index from the collection if it is present.
The element that was removed or null if the index was out of bounds.
The index of the element to remove.