base.php working but no if untill here