Question: I currently have the guard statement:

```
 guard let designationQuota = Defaults.quotas.value?.designationQuota, designationQuota > 0 else {
      return AppDelegate.shared.presentNoDesignationQuotaWarning()
 }

```

however I ***only*** want to do the guard block if the variable `needsQuota == true`. I want to skip the guard statement if `needsQuota == false`. Is there a nicer way of doing this over than an if statement with a return?

EDIT:

How do I simplify this into a single guard?

```
if needsQuota {
  guard let designationQuota = Defaults.quotas.value?.designationQuota, designationQuota > 0 else {
      return AppDelegate.shared.presentNoDesignationQuotaWarning()
   }
}

```

Answer: 
How about :

```
guard !needsQuota ||
    (Defaults.quotas.value?.designationQuota.map { $0 > 0 } == true) else {
    return AppDelegate.shared.presentNoDesignationQuotaWarning()
}

```
Wouldn‘t this do the trick?

```
guard needsQuota, let designationQuota = Defaults.quotas.value?.designationQuota, designationQuota > 0 else {
    return AppDelegate.shared.presentNoDesignationQuotaWarning()
}

```