adding the if while php