removes empty classes or property from tree