Added a default ok-check so that nil path-els won't slip through.