Use isNUll() instead of != NULL.