How to create an operator overload that only accepts nil