validate-inputs

Check function inputs for correctness and safety. Use when implementing defensive programming.