I've just read this sentence:
...As long as they have their own independent lives and help out only when needed, mothers-in-law can play a very useful role in any family...
My question is about "when needed". Is it correct? It shouldn't be "when is needed"?