Took out the if in the php code.