Display error message and stop execution

In the onReady(), when you’re checking the content in the collection, if there’s a problem, you could open up a Lightbox to notify the user of a problem. You can then redirect to another page, or perform some other action.