protected function isNonLoadedProxy(string $key): bool
    {
        $relation = $this->getEntityAttribute($key);

        return $relation instanceof ProxyInterface && !$relation->isProxyInitialized();
    }