at this point you don't know if there are generators or not...and is_constant is a pretty expensive routine. What type of constant are you looking for? a number? (`foo.is_Number` or `foo.is_number` would be better)