Check for null in NIL? for JS