added validation to ingredient delete, refactored into helper methods