Added code to if.php