You have to show they knew or should have known. If the hazard existed long enough, or if it’s something any reasonable person would fix or warn about, you may be able to prove responsibility.