move IsNull to namespace