src/ExtDirect/Collections/Collection.php
protected function isUnique($instance)
    {
        foreach ($this->getCollection() as $entry) {
            if ($entry->getAnnotatedName() === $instance->getAnnotatedName()) {
                return false;
            }
        }

        return true;
    }
protected function isUnique($instance)
    {
        foreach ($this->getCollection() as $entry) {
            if ($entry->getAnnotatedName() === $instance->getAnnotatedName()) {
                return false;
            }
        }

        return true;
    }
checks if annotated name does not exist already

@param mixed $instance the direct instance

@return bool