Why not just put this logic in https://github.com/mozilla/popcorn.webmaker.org/blob/master/public/src/cornfield/module.js#L14? We do similar kinds of checks there already.