It's more compact but a do-nothing extend is more expensive than the test
to avoid it. But that might be a case of premature optimization.