protected function find($directory)
    {
        if ($iterator = parent::find($directory)) {
            new Textpattern();

            foreach ($this->manifestNames as $manifestName) {
                foreach ($iterator as $file) {
                    if (basename($file) === $manifestName && $this->isManifest($file)) {
                        $this->dir = dirname($file);
                        $this->import();
                    }
                }

                if (!empty($this->plugin)) {
                    return true;
                }
            }
        }

        return false;
    }