Removed some redundant code (made checkForDeletesSub method)