Simplify example code for isNull function