Reorder argument checks.