Precedence of && is higher than //, so edit medium wasn't grouping the comparison correctly.