Some null checks