removing unnecessary test
changing parameter type from NSObject* to id<NSObject>

& being pedantic