correct to check for method on class instead of instance