updated if statement php