That sounds like the kind of thing a feature detection library would do, yes. I’ll update the PR.