safeTail example