isValid: -> checkValid: to avoid private API warning.