While this code is relatively concise, it may be nice to extract `isValid` into its own method which encapsulates checking for blanks as well as valid integer ranges!