Can you avoid the method call here and move the `isset` from `getProxyDefinition` to this place?