Adding data check to destroy method;