Fixed isPathable function.