safePop

fun <T> LinkedList<T>.safePop(): T?