This reverts commit b1efb005ab. This needs to be a runtime check, not a compile-time check.
b1efb005ab