Use ! in validity period null check