Deleted redundant null checks