Deleted unnecessary null check