switching null to ~ as per @WouterJ