Having null values here shouldn't be an issue, but I've added null handling just to play it safe.