Added autoload check in index.php to prevent blank page