only own properties set to class

Shorter code, but string vs. object comparison ...