I think, you mean `self.args[0]` is number, right?  If so, you should use `is_number` property.  But why you restrict yourself only to numbers?