Added hasPathBack method to Post.java