renamed is_method?() to method?()