Added has sum path function