Adding guards to delete and toggle completion methods.