if path is empty, return the atom