check null explicitly