Some NPE evasion and checking