Because is an `if else` statement i don't have to check for the `closed` state because when the `if` is `false` it automaticly execute the `else` statement