Avoid duplicate call of the same method, assign the first result to a variable, and compare the latter with `null` (explicitly showing that the result is not a boolean but the actual cached result if available)