Also check the domain in addition to the type, to avoid processing any associated layers unnecessarily. And remove an unnecessary comment too.
Also check the domain in addition to the type, to avoid processing any associated layers unnecessarily. And remove an unnecessary comment too.