remove children if source is undefined