firstOrNull

fun firstOrNull(): E?

Returns the first element, or null if this deque is empty.