UPD: fix condition in index.php