added code hint for isPresent