You handle that in the validation layer, like millions of people have done with dynamic languages in the past.