endp
(endp list)
The end-of-list test: returns t when list is nil (the empty list) and nil when it is a cons cell. It is the canonical way to detect the end while cdr-ing down a list. Anything else signals a type-error (expected type LIST), so an improper list's tail is caught.