This is an improvement, but please do not put barrier=kerb nodes on footway=sidewalk ways, as this will seriously impede routing for wheelchair users.

From the wiki:
"Please do not add a barrier=kerb on a node joining the footways near the crossing (e.g. sidewalk footway joining with footway crossing the road). That would implicate that such kerbs block not only crossing the road, but also just using the sidewalk (i.e. without intending to cross the road), which is almost never the case - and which has a big implication for several classes of users (most notably, wheelchair users)."
https://wiki.openstreetmap.org/wiki/Tag:barrier%3Dkerb#On_a_node 