This is a bit trickier than just making sure that it is a path of length 1, since it could also be an object field or (soon) an upvar.