if ([object isKindOfClass:[self class]]) {

K&R style :octocat: