Changed path existence check