checks function

Validate inputs (attributions, options, ...)