refactored delete_okay? and restore_okay? into one method that does better checking of items