buffer_empty
buffer_empty ([name])
This function can be used to tell whether a local buffer contains data. If name is omitted, the default paste buffer is used.
If this function is called from a paste callback function, it will return 0 since the paste buffer always has contents at that point.