Adds check for undefined snapping option