Generalize support for path.in(empty)