check NULL to match docs