Early returns. Is also move the content after the early return to a separate function if it’s more than a few lines – my aim is to reduce cognitive load as much as possible, but yes that could be a very subjective topic.
EDIT: corrected errors from typing on phone. Thanks Daan for still reading and responding to it. Might have looked pretty bad with all those typos :)