public static function check($document) { self::$doc = $document; // Don't do anything if this is a new document or a user document if (!$document->getVersion() || $document->getModule() === 'users') { return; } if (self::fields_removed() >= 4 || self::i18n_fields_removed() >= 3) { self::signal(); } }