private function searchDirectories(array $directories, $class)
    {
        foreach ($directories as $directory) {
            $directory = trim($directory);
            $path = preg_replace('/[\\/\\\\]+/', DIRECTORY_SEPARATOR, $directory . '/' . $class);

            if ($directory && $file = $this->searchExtensions($path)) {
                return $file;
            }
        }

        return false;
    }