You could also write this as `if method.arity.nonzero?` which matches what you're testing a bit more closely.