Safer derivative checks.