NPE check