I personally like to use early return for error checking because I hate nested if blocks. However, in school our lecturer emphasized on trying to have only a single exit point in a function to make it more readable. Therefore assigning to a variable then returning it is prefered I wonder what would you say about this opinion :) Thanks!