Could you change those here to REQUIRE(condition, "PCA only works with dense features") and "PCA only works with real features" while you are touching things?