safe_extract function

Safely Extract Elements from a List