isPresent method