redundant null check