A tinny fine adjustment: the list should exist before referring the pointer.
I think if we don't know if the pointer is valid, using it directly might cause a segment error.
I think if we don't know if the pointer is valid, using it directly might cause a segment error.