How about calling this `is_constant`? The name with the dot makes it seem like an R function that checks type.