window-valid-p
window-valid-p is a built-in function in `C source code
'.
(window-valid-p OBJECT)
Return t if OBJECT is a valid window and nil otherwise.
A valid window is either a window that displays a buffer or an internal
window. Windows that have been deleted are not valid.