Use early returns to associate the error message with the corresponding condition and eliminate some else-after-returns in the process.
Use early returns to associate the error message with the corresponding condition and eliminate some else-after-returns in the process.