I think something like 'validateTypes' can be better, no?