Found an = in an if statement that ought to have been an ==