public function exists(): bool
    {
        // convert namespace into path
        $class = str_replace('\\', '/', $this->classname);

        // append .php?
        if (strpos($class, '.php') === false) {
            $class .= '.php';
        }

        $class = $this->replaceDirectorySeperator($class);

        if (!empty($this->basedir)) {
            $class = $this->basedir .= DIRECTORY_SEPARATOR;
        }

        return file_exists($class);
    }