Retrieves the element at the specified index of the list
the element if a valid index is provided, null otherwise