Technically, this should work OK and would fail were you to destroy this enemy:
It’s just utterly unnecessary. Validation seems more straightforward.
Good luck!