Best way to detect an object presence