The comment is somewhat misleading - it doesn't only check, it also does the actual hardening.