clarified null pointer check