The function
clipboard-empty
returns
nil
if there is an object of the kind indicated by
format
on the clipboard, or
t
otherwise.
format controls what kind of object is checked. The allowed values of format are as described for clipboard.