This is true, I didn't implement this at first because its slightly more complicated than what I did. I'm implementing this check now (check that 3 consecutive layers are never set or that both layers of a 2 layer network are not set).