Got the if backwards