add function checking class name to NSObject category