Can we pull this out into a isGoodPath helper method or something?