Input argument validation.