The useDomain checks now fail, since DOMAIN_ADMIN_FIELD constant is in an interface.
Use module_exists() instead.
Needs review
4.0
Code
Updated patch.