protected function isLoaderRegistered(&$last)
    {
        $result = false;
        $last = false;

        if ($funcs = spl_autoload_functions()) {
            $index = array_search($this->aliasLoader, $funcs, true);

            if (false !== $index) {
                $result = true;
                $last = $index === count($funcs) - 1;
            }
        }

        return $result;
    }