chaged isPresent() for check() functions