return path if present in object, else return pairtree path