this can be simplified as ``if (!$index instanceof CheckInterface) { ``