Validate method/function parameters
