Improve args validation checks.