Replace when-not by unless.