I suggest adding "else" branch, which reports an error. In the future if it's used with illegal input, it will report and error.