Built the isReachable function