I don't understand this function.  Why isn't `e.has(Piecewise)` sufficient for the condition below?