`isValid()` method returns boolean now