small npe check