// "Replace with 'isEmpty()'" "true" import java.util.Optional; public class Test { void test(Optional opt) { if(!opt.isPresent()) return; } }