if there is a current node
if (p != null)