I have come across a very strange problem where is_null is not working as expected. Maybe I am missing something.
Here is my main implementation code: