Revert "Remove unnecessary and broken DELETE check."

This reverts commit 7906153b4718f34ed31c193a8e80b171e567209c.

Reverting commit accidentally commited straight to develop.