Next up in my “readable code tips” series:
There is a balance to be found between "inlining" multiple expressions, and using temporary variables.
You may also learn about “short-circuit evaluation” here if you don't know what that is (or you may just put a name to something you already know).
https://rosswintle.uk/2024/03/readable-code-tips-dont-inline-everything/