The API to check if the clipboard has contents has existed since iOS 10.
> Starting in iOS 10, the UIPasteboard class provides properties for directly checking whether specific data types are present on a pasteboard, described in Checking for Data Types on a Pasteboard. Use these properties, rather than attempting to read pasteboard data, to avoid causing the system to needlessly attempt to fetch data before it is needed or when the data might not be present.
https://developer.apple.com/documentation/uikit/uipasteboard