can also (better?) be written as `if`